Software Development
76 questions· page 1 of 8
One part of the program contains an algorithm which is represented by a state-transition diagram.
The table shows the inputs, outputs and states for the algorithm:
| Current state | Input | Output | Next state |
|---|---|---|---|
| S1 | A2 | X2 | S3 |
| S1 | A1 | X1 | S2 |
| S2 | A4 | X4 | S5 |
| S3 | A1 | S3 | |
| S3 | A3 | X3 | S2 |
| S3 | A2 | X4 | S4 |
| S4 | A1 | X1 | S4 |
| S4 | A3 | S2 | |
| S4 | A4 | X4 | S5 |
Complete the state-transition diagram to represent the information given in the table.
A structure chart is used to document a different part of the program.
This part of the program contains six modules:
| Pseudocode module header |
|---|
PROCEDURE Setup() |
PROCEDURE Restart(H1 : STRING, C1 : INTEGER) |
FUNCTION Modify(B1 : BOOLEAN) RETURNS INTEGER |
PROCEDURE Final(T1 : INTEGER) |
PROCEDURE Update(BYREF R2 : STRING) |
FUNCTION Confirm() RETURNS BOOLEAN |
Module Setup will repeatedly call three of the modules.
Complete the structure chart to document the information given in the table.
The table lists some of the development activities.
Complete the table by writing the name of the life cycle stage for each activity:
| Activity | Name of life cycle stage |
|---|---|
| a structure chart is produced | |
| a program is modified to allow it to run on new hardware | |
| the programmer identifies the customer’s requirements | |
| an Integrated Development Environment (IDE) provides context-sensitive help such as ‘auto-complete’ |
Alpha and beta testing has been completed. The final testing stage is carried out by the customer.
Identify this final testing stage.
.............................................................................................................................................
Explain the meaning of the curved arrow symbol in this structure chart.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
The program designer has noted that:
Countis the number of elements in an arrayT1is a value representing the number of elements in an array that have been modifiedKeyis of typeSTRING
Write the pseudocode module headers for analyse, update and sort.
Analyse:
...................................................................................................................................................
...................................................................................................................................................
Update:
...................................................................................................................................................
...................................................................................................................................................
Sort:
...................................................................................................................................................
...................................................................................................................................................
One part of the program contains an algorithm which is represented by a state-transition diagram.
The table shows the inputs, outputs and states for the algorithm:
| Current state | Input | Output | Next state |
|---|---|---|---|
| S1 | A1 | S2 | |
| S2 | A2 | X4 | S3 |
| S3 | A1 | X1 | S3 |
| S3 | A2 | X1 | S3 |
| S3 | A3 | X3 | S4 |
| S3 | A4 | S2 | |
| S4 | A3 | X4 | S5 |
| S4 | A4 | X4 | S5 |
| S4 | A1 | S2 |
Complete the state-transition diagram to represent the information given in the table:
A structure chart is used to document a different part of the program, made up of five modules.
Program notes:
- module
Setupcalls either moduleRestart, or moduleConfirm - module
Confirmtakes a string as a parameter and returns an integer - module
Modifyhas no parameters and returns a Boolean - module
Updatetakes a string as a parameter - module
Restartrepeatedly calls moduleUpdatefollowed by moduleModify - module
Restarttakes a string as a parameter that is passed by reference.
Draw a structure chart to represent the relationship between the five modules, including all parameters and return values.
The following table lists some development activities.
Complete the table by writing the name of the life cycle stage for each activity.
| Activity | Name of life cycle stage |
|---|---|
| The walkthrough method is used. | |
| An algorithm is implemented in a programming language. | |
| The client is interviewed about problems with the current system. | |
| The program is modified to run on new hardware. | |
| Records and file structures are defined. |
The function will:
• take an integer value as a parameter
• return TRUE if the value is within the range 24 to 37, inclusive
• otherwise return FALSE.
Complete the table to define a test plan to thoroughly test the operation of the function.
| Type of test data | Test data value | Expected result |
|---|---|---|
| Normal | 30 | TRUE |
The function is to be tested on its own. When it is shown to work correctly the function will be combined with other modules and testing will continue.
Identify the type of testing that this represents.
The following table lists some development activities.
Complete the table by writing the name of the life cycle stage for each activity.
| Activity | Name of life cycle stage |
|---|---|
| A compiler is used. | |
| A program that has been released for general use is modified. | |
| The dry run method is used. | |
| The program structure is specified. |
A software developer has written modules Test_A() and Test_B(). These have been written but contain errors. These modules are called from several places in the main program and testing of the main program (integration testing) has to stop.
Identify a method that can be used to continue testing the main program before the errors in these modules have been corrected and describe how this would work.
Method ......................................................................................................................................
Description ................................................................................................................................
...................................................................................................................................................
Give two reasons why this may not be the most appropriate model to use in this case.
Reason 1 ...........................................................................................................................
Reason 2 ...........................................................................................................................
The website has been running in test mode for several weeks.
Identify and describe a final stage of testing that should take place before the website is made available to all customers.
Stage ........................................................................................................................................
Description ................................................................................................................................
Describe how a typical Integrated Development Environment (IDE) could be used to identify this error.
The pseudocode is converted into program code as part of a larger program.
During compilation, a complex statement generates an error.
The programmer does not want to delete the complex statement but wants to change the statement so that it is ignored by the compiler.
State how this may be achieved.
The program will be tested using the walkthrough method.
Additional information will be needed before this method can be used.
Identify this additional information and explain why it is needed.
Additional information ...............................................................................................................
...................................................................................................................................................
Explanation ...............................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Testing is completed and the program is made available to users.
Some time later, changes are made to the program to improve the speed of response.
State the type of maintenance that has been applied to the program.
.............................................................................................................................................